package com.xxxx.server.exception;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @Description 通用异常处理返回信息
 * @Author shanxin
 * @Since 2021/6/6 0:50
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExceptionResponse {
    @ApiModelProperty("异常发生时间戳")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date timestamp;
    @ApiModelProperty("异常信息")
    private String message;
    @ApiModelProperty("异常详情")
    private String detail;
}
